<?php
	require_once(dirname(__FILE__)."/../include/common.inc.php");
	
	$area = $_REQUEST['citycode'];
	// 获得总的搜索院校的数组
	$sql = "SELECT * FROM `#@__collegeinfo` WHERE  area=$area";
	$dsql->SetQuery($sql);
	$dsql->Execute();
	$college = array();
	while($row = $dsql->GetArray()){
    	$college[] = $row;
	}

	if (count($college)==0) {
		echo "<option value='0'>请选择</option>";
	}
	else{
		$option = '';
		foreach ($college as $key => $value) {
			$option .= "<option value='".$value['collegeId']."'>".$value['name']."</option>";
		}
		echo $option;
	}


?>